package com.dlc.felear.xiaoensale.entity;

import java.io.Serializable;
import java.util.List;

public class DisplayGoodsLists implements Serializable {

    /**
     * code : 200
     * data : [{"area":"唯佳工厂","data":[{"unit":2,"goodsId":"b06a1ca573dd4f37bec1c586c0cff3fe","price":0.0046,"pic":"../static/img/webuploader.png","goodsName":"白米饭"},{"unit":2,"goodsId":"69aefdfa4ee24a71b99e4618525e5051","price":0.001,"pic":"aff5d2b1-7c32-438e-a8dc-7ce5f65fc430.jpg","goodsName":"香辣排骨（测试）"}]}]
     * message : 操作成功
     */

    private int code;
    private String message;
    private List<AreaInfo> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<AreaInfo> getData() {
        return data;
    }

    public void setData(List<AreaInfo> data) {
        this.data = data;
    }

    public static class AreaInfo implements Serializable {
        /**
         * area : 唯佳工厂
         * data : [{"unit":2,"goodsId":"b06a1ca573dd4f37bec1c586c0cff3fe","price":0.0046,"pic":"../static/img/webuploader.png","goodsName":"白米饭"},{"unit":2,"goodsId":"69aefdfa4ee24a71b99e4618525e5051","price":0.001,"pic":"aff5d2b1-7c32-438e-a8dc-7ce5f65fc430.jpg","goodsName":"香辣排骨（测试）"}]
         */

        private String area;
        private List<GoodsInfo> data;

        public String getArea() {
            return area;
        }

        public void setArea(String area) {
            this.area = area;
        }

        public List<GoodsInfo> getData() {
            return data;
        }

        public void setData(List<GoodsInfo> data) {
            this.data = data;
        }

        public static class GoodsInfo implements Serializable {
            /**
             * unit : 2
             * goodsId : b06a1ca573dd4f37bec1c586c0cff3fe
             * price : 0.0046
             * pic : ../static/img/webuploader.png
             * goodsName : 白米饭
             */

            private int unit;
            private String goodsId;
            private float price;
            private String pic;
            private String goodsName;

            public int getUnit() {
                return unit;
            }

            public void setUnit(int unit) {
                this.unit = unit;
            }

            public String getGoodsId() {
                return goodsId;
            }

            public void setGoodsId(String goodsId) {
                this.goodsId = goodsId;
            }

            public float getPrice() {
                return price;
            }

            public void setPrice(float price) {
                this.price = price;
            }

            public String getPic() {
                return pic;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public String getGoodsName() {
                return goodsName;
            }

            public void setGoodsName(String goodsName) {
                this.goodsName = goodsName;
            }
        }
    }
}
